feat: add ais.refinementList widget support#33
Merged
sarahdayan merged 6 commits intomainfrom Feb 24, 2026
Merged
Conversation
✅ Deploy Preview for algolia-experiences-js ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for algolia-experiences-react ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
ais.refinementList widget support
db519b4 to
4b9c6a6
Compare
dhayab
approved these changes
Feb 23, 2026
Register the refinementList widget in the runtime and enable it in the toolbar with full field configuration for attribute, operator, limit, showMore, showMoreLimit, searchable, searchablePlaceholder, and cssClasses. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add a new `select` field type that renders a segmented control (tabs-style) for enum parameters like `operator`. Selecting the default value sends `undefined` to avoid storing redundant values. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add a `visibleIf` option to field overrides that hides a field unless a sibling parameter matches an expected value. Use it for showMoreLimit (only visible when showMore is true) and searchablePlaceholder (only visible when searchable is true). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add searchableIsAlwaysActive, searchableEscapeFacetValues, and searchableSelectOnSubmit fields, all conditionally visible when searchable is enabled. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When a switch field is toggled off, any fields with a visibleIf dependency on that switch are automatically reset to undefined. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
4b9c6a6 to
719963f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ais.refinementListin the runtime with passthroughtransformParams(bucket 1 only, templates andtransformItemsleft as TODOs)ais.refinementListto the$$supportedWidgetstype unionattribute,operator,limit,showMore,showMoreLimit,searchable,searchablePlaceholder, andcssClasses(12 class keys)paramLabelsandparamDescriptionsfor all parameterssortByparameter with a newselect-listfield type — a toggleable ordered list of<select>elements where each row picks from a fixed set of sort criteria (isRefined,count,namewith asc/desc variants). Already-used values are disabled in other rows. Toggling on starts with one criterion; toggling off sendsundefined(library default).visibleIfto conditionally showshowMoreLimitonly whenshowMoreis enabled, and searchable sub-params (searchablePlaceholder,searchableIsAlwaysActive,searchableEscapeFacetValues,searchableSelectOnSubmit) only whensearchableis enabled. Toggling a parent switch off clears all its dependent params back toundefined.Preview